﻿@using System.Threading.Tasks
@using Abp.Configuration.Startup
@using Abp.Timing
@using Abp.Web.Security.AntiForgery
@using MVlog.Timing
@using MVlog.Url
@using MVlog.Web.Resources
@using MVlog.Web.Url
@using CultureHelper = MVlog.Localization.CultureHelper
@inject ScriptPaths ScriptPaths
@inject AppTimes AppTimes
@inject IAbpAntiForgeryManager AbpAntiForgeryManager
@inject IMultiTenancyConfig MultiTenancyConfig
@inject IWebResourceManager WebResourceManager
@inject IWebUrlService WebUrlService
@{
    Layout = null;
    AbpAntiForgeryManager.SetCookie(Context);
}
<!DOCTYPE html>
<html lang="en" @(CultureHelper.IsRtl ? "dir=\"rtl\"" : "")>
<head>
    <meta charset="utf-8" />
    <title>AbpZeroTemplate</title>
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta content="width=device-width, initial-scale=1.0" name="viewport" />
    <meta http-equiv="Content-type" content="text/html; charset=utf-8">

    @* Fill these meta tags upon your project specification *@
    <meta content="AbpZeroTemplate" name="description" />
    <meta content="AbpZeroTemplate" name="keywords">
    <meta content="AbpZeroTemplate" name="author" />

    <link rel="shortcut icon" href="~/favicon.ico" />

    <environment names="Development">
        <link rel="stylesheet" href="~/fonts/fonts-open-sans.css" asp-append-version="true" />

        @* Bundled: view-resources/Views/_Bundles/account-layout-libs[-rtl].min.css *@
        <link rel="stylesheet" href="~/lib/simple-line-icons/css/simple-line-icons.css" asp-append-version="true" />
        <link rel="stylesheet" href="~/lib/font-awesome/css/font-awesome.css" asp-append-version="true" />
        <link rel="stylesheet" href="~/lib/famfamfam-flags/dist/sprite/famfamfam-flags.css" asp-append-version="true" />
        <link rel="stylesheet" href="@(CultureHelper.IsRtl ? "~/lib/bootstrap-rtl/bootstrap-rtl.css" : "~/lib/bootstrap/dist/css/bootstrap.css")" asp-append-version="true" />
        <link rel="stylesheet" href="~/lib/uniform/css/uniform.default.css" asp-append-version="true" />
        <link rel="stylesheet" href="~/lib/toastr/toastr.css" asp-append-version="true" />
        <link rel="stylesheet" href="~/lib/sweetalert/dist/sweetalert.css" asp-append-version="true" />
        <link rel="stylesheet" href="~/metronic/assets/global/css/components-md@(CultureHelper.IsRtl ? "-rtl" : "").css" asp-append-version="true" />
        <link rel="stylesheet" href="~/metronic/assets/global/css/plugins-md@(CultureHelper.IsRtl ? "-rtl" : "").css" asp-append-version="true" />
        <link rel="stylesheet" href="~/metronic/assets/admin/layout/css/layout@(CultureHelper.IsRtl ? "-rtl" : "").css" asp-append-version="true" />
        <link rel="stylesheet" href="~/metronic/assets/admin/layout/css/themes/default@(CultureHelper.IsRtl ? "-rtl" : "").css" asp-append-version="true" />

        <link rel="stylesheet" href="~/Common/_Bundles/common-styles.css" asp-append-version="true" />

        <link rel="stylesheet" href="~/view-resources/Views/Account/_Layout@(CultureHelper.IsRtl ? "-rtl" : "").css" asp-append-version="true" />
    </environment>

    <environment names="Staging,Production">
        <link rel="stylesheet" href="~/fonts/fonts-open-sans.css" asp-append-version="true" />
        <link rel="stylesheet" href="~/view-resources/Views/_Bundles/account-layout-libs@(CultureHelper.IsRtl ? "-rtl" : "").min.css" asp-append-version="true" />
        <link rel="stylesheet" href="~/Common/_Bundles/common-styles.min.css" asp-append-version="true" />
        <link rel="stylesheet" href="~/view-resources/Views/Account/_Layout@(CultureHelper.IsRtl ? "-rtl" : "").min.css" asp-append-version="true" />
    </environment>

    @RenderSection("Styles", false)

    <script type="text/javascript">
        @* This is used to get the application's root path from javascript.
        It's useful if you're running application in a virtual directory under IIS. *@
        var abp = abp || {}; abp.appPath = '@ApplicationPath';
    </script>

</head>
<body class="page-md login">
    <div class="menu-toggler sidebar-toggler">
    </div>

    <vc:account-logo></vc:account-logo>
    
    @if (!(ViewBag.DisableTenantChange ?? false) && MultiTenancyConfig.IsEnabled && !WebUrlService.SupportsTenancyNameInUrl)
    {
        <div class="content tenant-change-box">
            <vc:tenant-change></vc:tenant-change>
        </div>
    }

    <div class="content account-forms">
        @RenderBody()
    </div>

    <vc:account-languages></vc:account-languages>

    <div class="copyright">
        @Clock.Now.Year © AbpZeroTemplate.
    </div>

    <environment names="Development">
        @* Bundled: wwwroot/view-resources/Views/_Bundles/account-layout-libs.min.js *@
        <script src="~/lib/json2/json2.js" asp-append-version="true"></script>
        <script src="~/lib/jquery/dist/jquery.js" asp-append-version="true"></script>
        <script src="~/lib/bootstrap/dist/js/bootstrap.js" asp-append-version="true"></script>
        <script src="~/lib/jquery-validation/dist/jquery.validate.js" asp-append-version="true"></script>
        <script src="~/lib/blockUI/jquery.blockUI.js" asp-append-version="true"></script>
        <script src="~/lib/uniform/jquery.uniform.js" asp-append-version="true"></script>
        <script src="~/lib/js-cookie/src/js.cookie.js" asp-append-version="true"></script>
        <script src="~/lib/toastr/toastr.js" asp-append-version="true"></script>
        <script src="~/lib/spin.js/spin.js" asp-append-version="true"></script>
        <script src="~/lib/spin.js/jquery.spin.js" asp-append-version="true"></script>
        <script src="~/lib/sweetalert/dist/sweetalert-dev.js" asp-append-version="true"></script>
        <script src="~/lib/abp-web-resources/Abp/Framework/scripts/abp.js" asp-append-version="true"></script>
        <script src="~/lib/abp-web-resources/Abp/Framework/scripts/libs/abp.jquery.js" asp-append-version="true"></script>
        <script src="~/lib/abp-web-resources/Abp/Framework/scripts/libs/abp.toastr.js" asp-append-version="true"></script>
        <script src="~/lib/abp-web-resources/Abp/Framework/scripts/libs/abp.blockUI.js" asp-append-version="true"></script>
        <script src="~/lib/abp-web-resources/Abp/Framework/scripts/libs/abp.spin.js" asp-append-version="true"></script>
        <script src="~/lib/abp-web-resources/Abp/Framework/scripts/libs/abp.sweet-alert.js" asp-append-version="true"></script>
    </environment>

    <environment names="Staging,Production">
        <script src="~/view-resources/Views/_Bundles/account-layout-libs.min.js" asp-append-version="true"></script>
    </environment>

    <script type="text/javascript">
        abp.localization.defaultSourceName = '@LocalizationSourceName';
    </script>

    <!-- Dynamic scripts of ABP system (They are created on runtime and can not be bundled) -->
    <script src="~/AbpServiceProxies/GetAll?v=@(AppTimes.StartupTime.Ticks)" type="text/javascript"></script>
    <script src="~/AbpScripts/GetScripts?v=@AppTimes.StartupTime.Ticks" type="text/javascript"></script>

    <script src="@ScriptPaths.JQuery_Validation_Localization" asp-append-version="true"></script>

    <environment names="Development">
        <script src="~/metronic/assets/global/scripts/app.js" asp-append-version="true"></script>
    </environment>

    <environment names="Staging,Production">
        <script src="~/metronic/assets/global/scripts/app.js" asp-append-version="true"></script>
    </environment>

    <script type="text/javascript">
        App.setAssetsPath(abp.appPath + 'metronic/assets/');
    </script>

    <environment names="Development">
        @* Bundle (not minified) for all scripts in Common/Scripts folder. Minified: wwwroot/Common/_Bundles/common-scripts.min.js *@
        <script src="~/Common/_Bundles/common-scripts.js" asp-append-version="true"></script>
        <script src="~/view-resources/Areas/AppAreaName/Common/Scripts/jquery-validation-custom.js" asp-append-version="true"></script>
        <script src="~/metronic/assets/admin/layout/scripts/layout.js" asp-append-version="true"></script>
    </environment>

    <environment names="Staging,Production">
        <script src="~/Common/_Bundles/common-scripts.min.js" asp-append-version="true"></script>
        <script src="~/view-resources/Areas/AppAreaName/Common/Scripts/jquery-validation-custom.js" asp-append-version="true"></script>
        <script src="~/metronic/assets/admin/layout/scripts/layout.js" asp-append-version="true"></script>
    </environment>
    
    @WebResourceManager.RenderScripts();

    @RenderSection("Scripts", false)

    <script>
        jQuery(document).ready(function () {
            if (window.CurrentPage) {
                CurrentPage.init();
            }
        });
    </script>
</body>
</html>
